home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / answrbok / 5_9.lha / 5_9 / 5_9c0.c < prev    next >
Text File  |  1993-08-08  |  470b  |  22 lines

  1. * Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
  2. * The C++ Answer Book */
  3. * Tony Hansen */
  4. * All rights reserved. */
  5. / intset class as defined in section 5.3.2
  6. lass intset
  7.  
  8.    int cursize, maxsize;
  9.    int *x;
  10.  
  11. ublic:
  12.    intset(int m, int n);   // at most m ints in 1..n
  13.    ~intset();
  14.  
  15.    int member(int t);        // is "t" a member?
  16.    void insert(int t);        // add 't" to set
  17.  
  18.    void iterate(int& i);
  19.    int ok(int& i);
  20.    int next(int& i);
  21. ;
  22.